# =============================================================
# Makefile 
# ---------------------------------------
# Author : Woo-Hyun Kim
# Email : woorung@icu.ac.kr or woorung@nhncorp.com
# Date : Jul. 10, 2006
# =============================================================
include ../../etc/profile.mk

# common configuration
CC = g++
#DEFS = -Wno-deprecated

# target
TARGET = CShell

OBJS = $(TARGET).o
EXES = $(OBJS)

all : $(EXES) lib lib-allinone

$(TARGET).o : $(TARGET).cpp
	$(CC) -c $(TARGET).cpp $(DEFS) -I$(WNI)

lib :
	ar -ruv $(WNL)/libwn.a $(TARGET).o
	ranlib $(WNL)/libwn.a
	cp $(TARGET).h $(WNI)/
	@echo added $(TARGET).o to libwn.a

lib-allinone :
	ar -ruv $(WNL)/libwn-allinone.a ${TARGET}.o
	ranlib $(WNL)/libwn-allinone.a
	@echo libwn-allinone.a completed.

clean :
	$(RM) *.o $(OBJS) $(EXES)
